﻿using AutoMapper;
using Enferno.Public.Web.Mappers.Resolvers;
using Enferno.Public.Web.Models;
using Enferno.Public.Web.ViewModels;
using Enferno.StormApiClient.Products;

namespace Enferno.Public.Web.Mappers.ProductProfiles
{
    public class ParametricValueModelToParametricValueViewModelProfile :
        ParametricValueBaseModelToParametricValueBaseViewModelProfile<ParametricValueModel, ParametricValueViewModel>
    {
        
    }

    public class ParametricValueBaseModelToParametricValueBaseViewModelProfile<TParametricValueModel, TParametricValueViewModel> : Profile
        where TParametricValueModel: ParametricValueModel
        where TParametricValueViewModel: ParametricValueViewModel
    {
        protected override void Configure()
        {
            Mapper.CreateMap<TParametricValueModel, TParametricValueViewModel>();
        }

        public override string ProfileName
        {
            get { return GetType().Name; }
        }
    }
}
